﻿public class Point {
	private int x;
	private int y;

	public int getX() {
		return x;
	}

	public void setX(int newX) {
		x = newX;
	}

	public int getY() {
		return y;
	}
	public void setY(int newY) {
		y = newY;
	}

	/**
	 * x：100以内随机数 y：100以内随机数
	 */
	 public Point drawPoint() {
		Point p1 = new Point();
		int x = (int)(Math.random() * 100);
		int y = (int)(Math.random() * 100);
		p1.setX(x);
		p1.setY(y);
		return p1;
	}
}